\hypertarget{class_union}{
\section{\-Union \-Class \-Reference}
\label{class_union}\index{\-Union@{\-Union}}
}


\hyperlink{class_union}{\-Union} class.  




{\ttfamily \#include $<$union.\-h$>$}

\-Inheritance diagram for \-Union\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_union}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_union_aa5437274642585a29ae3de688d13d854}{
{\bfseries \-Union} (\hyperlink{class_node}{\-Node} $\ast$, \hyperlink{class_node}{\-Node} $\ast$)}
\label{class_union_aa5437274642585a29ae3de688d13d854}

\item 
int \hyperlink{class_union_afa492095314d22df3372b4b1a3efaeca}{\-Intersect} (const \hyperlink{class_ray}{\-Ray} \&, \hyperlink{class_intersection}{\-Intersection} \&)
\begin{DoxyCompactList}\small\item\em \-Intersecting function. \end{DoxyCompactList}\item 
int \hyperlink{class_union_a2ecdc6c70bd44426bc20d88885ec497f}{\-Intersect} (const \hyperlink{class_ray}{\-Ray} \&, \hyperlink{class_intersection}{\-Intersection} \&, \hyperlink{class_intersection}{\-Intersection} \&)
\begin{DoxyCompactList}\small\item\em \-Intersecting function. \end{DoxyCompactList}\item 
int \hyperlink{class_union_ae9430083fcfdc62199b26db6e511d150}{\-P\-M\-C} (const \hyperlink{class_vector}{\-Vector} \&)
\begin{DoxyCompactList}\small\item\em \-Containing function. \end{DoxyCompactList}\item 
\hypertarget{class_union_aa6784389abd98cb2695dd19013b3fd5d}{
\hyperlink{class_vector}{\-Vector} {\bfseries get\-Emission} ()}
\label{class_union_aa6784389abd98cb2695dd19013b3fd5d}

\item 
\hypertarget{class_union_a3960fc7e0d24a0e67fc936d31339c42f}{
\hyperlink{class_vector}{\-Vector} {\bfseries get\-Color} ()}
\label{class_union_a3960fc7e0d24a0e67fc936d31339c42f}

\item 
\hypertarget{class_union_ae42e6df118a33668b35837f58069d269}{
\hyperlink{class_vector}{\-Vector} {\bfseries get\-Position} ()}
\label{class_union_ae42e6df118a33668b35837f58069d269}

\item 
\hypertarget{class_union_ab5d1751fa3af64b7804db79f4e5e3413}{
int {\bfseries get\-Refl} ()}
\label{class_union_ab5d1751fa3af64b7804db79f4e5e3413}

\item 
\hypertarget{class_union_a7ba79196a182f3ed1dfc50607000d1cc}{
double {\bfseries get\-F} ()}
\label{class_union_a7ba79196a182f3ed1dfc50607000d1cc}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\hyperlink{class_union}{\-Union} class. 

\hyperlink{class_union}{\-Union} is a binary operand of the \-C\-S\-G 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{class_union_afa492095314d22df3372b4b1a3efaeca}{
\index{\-Union@{\-Union}!\-Intersect@{\-Intersect}}
\index{\-Intersect@{\-Intersect}!Union@{\-Union}}
\subsubsection[{\-Intersect}]{\setlength{\rightskip}{0pt plus 5cm}int \-Union\-::\-Intersect (
\begin{DoxyParamCaption}
\item[{const {\bf \-Ray} \&}]{, }
\item[{{\bf \-Intersection} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_union_afa492095314d22df3372b4b1a3efaeca}


\-Intersecting function. 

\-Compute the intersection between a union and a ray


\begin{DoxyParams}{\-Parameters}
{\em ray} & \-: the ray \\
\hline
{\em t} & \-: the intersection \\
\hline
\end{DoxyParams}


\-Implements \hyperlink{class_node_ac0836475b7b0275dffe5ce89547f6852}{\-Node}.

\hypertarget{class_union_a2ecdc6c70bd44426bc20d88885ec497f}{
\index{\-Union@{\-Union}!\-Intersect@{\-Intersect}}
\index{\-Intersect@{\-Intersect}!Union@{\-Union}}
\subsubsection[{\-Intersect}]{\setlength{\rightskip}{0pt plus 5cm}int \-Union\-::\-Intersect (
\begin{DoxyParamCaption}
\item[{const {\bf \-Ray} \&}]{, }
\item[{{\bf \-Intersection} \&}]{, }
\item[{{\bf \-Intersection} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_union_a2ecdc6c70bd44426bc20d88885ec497f}


\-Intersecting function. 

\-Compute the intersections between a union and a ray


\begin{DoxyParams}{\-Parameters}
{\em ray} & \-: the ray \\
\hline
{\em t1} & \-: the first intersection \\
\hline
{\em t2} & \-: the second intersection \\
\hline
\end{DoxyParams}


\-Implements \hyperlink{class_node_a8f308647523fba2603248b83149855a5}{\-Node}.

\hypertarget{class_union_ae9430083fcfdc62199b26db6e511d150}{
\index{\-Union@{\-Union}!\-P\-M\-C@{\-P\-M\-C}}
\index{\-P\-M\-C@{\-P\-M\-C}!Union@{\-Union}}
\subsubsection[{\-P\-M\-C}]{\setlength{\rightskip}{0pt plus 5cm}int \-Union\-::\-P\-M\-C (
\begin{DoxyParamCaption}
\item[{const {\bf \-Vector} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_union_ae9430083fcfdc62199b26db6e511d150}


\-Containing function. 

\-Checks if a point is inside the instance


\begin{DoxyParams}{\-Parameters}
{\em u} & \-: the point \\
\hline
\end{DoxyParams}


\-Implements \hyperlink{class_node_aeecdf01a88be40840b65eb34cecc7a3c}{\-Node}.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
headers/\hyperlink{union_8h}{union.\-h}\end{DoxyCompactItemize}
